using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
namespace WPFExcelReport
{
    public partial class VICC_EXORD
    {
        #region======ColumnSchema==========
        /*
                 public string ROWNID { get { if (dwMaster == null) return ""; return dwMaster["ROWNID"].ToString(); } set { if (dwMaster == null) return; dwMaster["ROWNID"] = value; OnPropertyChanged("ROWNID", value); } } //lENGth 20
                 public string VKPAUFKRS { get { if (dwMaster == null) return ""; return dwMaster["VKPAUFKRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPAUFKRS"] = value; OnPropertyChanged("VKPAUFKRS", value); } } //lENGth 2
                 public string VKPAUFLFD { get { if (dwMaster == null) return ""; return dwMaster["VKPAUFLFD"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPAUFLFD"] = value; OnPropertyChanged("VKPAUFLFD", value); } } //lENGth 6
                 public string VKPAUFPOS { get { if (dwMaster == null) return ""; return dwMaster["VKPAUFPOS"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPAUFPOS"] = value; OnPropertyChanged("VKPAUFPOS", value); } } //lENGth 3
                 public string ITEM { get { if (dwMaster == null) return ""; return dwMaster["ITEM"].ToString(); } set { if (dwMaster == null) return; dwMaster["ITEM"] = value; OnPropertyChanged("ITEM", value); } } //lENGth 40
                 public string VKPART { get { if (dwMaster == null) return ""; return dwMaster["VKPART"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPART"] = value; OnPropertyChanged("VKPART", value); } } //lENGth 20
                 public string VKPARTDES { get { if (dwMaster == null) return ""; return dwMaster["VKPARTDES"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPARTDES"] = value; OnPropertyChanged("VKPARTDES", value); } } //lENGth 40
                 public string VKPFARBE { get { if (dwMaster == null) return ""; return dwMaster["VKPFARBE"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPFARBE"] = value; OnPropertyChanged("VKPFARBE", value); } } //lENGth 10
                 public string VKPCDES { get { if (dwMaster == null) return ""; return dwMaster["VKPCDES"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPCDES"] = value; OnPropertyChanged("VKPCDES", value); } } //lENGth 40
                 public string TWIDTH { get { if (dwMaster == null) return ""; return dwMaster["TWIDTH"].ToString(); } set { if (dwMaster == null) return; dwMaster["TWIDTH"] = value; OnPropertyChanged("TWIDTH", value); } } //lENGth 10
                 public string VWIDTH { get { if (dwMaster == null) return ""; return dwMaster["VWIDTH"].ToString(); } set { if (dwMaster == null) return; dwMaster["VWIDTH"] = value; OnPropertyChanged("VWIDTH", value); } } //lENGth 10
                 public string GSQM { get { if (dwMaster == null) return ""; return dwMaster["GSQM"].ToString(); } set { if (dwMaster == null) return; dwMaster["GSQM"] = value; OnPropertyChanged("GSQM", value); } } //lENGth 10
                 public string GM { get { if (dwMaster == null) return ""; return dwMaster["GM"].ToString(); } set { if (dwMaster == null) return; dwMaster["GM"] = value; OnPropertyChanged("GM", value); } } //lENGth 10
                 public string YARN { get { if (dwMaster == null) return ""; return dwMaster["YARN"].ToString(); } set { if (dwMaster == null) return; dwMaster["YARN"] = value; OnPropertyChanged("YARN", value); } } //lENGth 40
                 public string PRICE { get { if (dwMaster == null) return ""; return dwMaster["PRICE"].ToString(); } set { if (dwMaster == null) return; dwMaster["PRICE"] = value; OnPropertyChanged("PRICE", value); } } //lENGth 10
                 public string SPRICE { get { if (dwMaster == null) return ""; return dwMaster["SPRICE"].ToString(); } set { if (dwMaster == null) return; dwMaster["SPRICE"] = value; OnPropertyChanged("SPRICE", value); } } //lENGth 10
                 public string COMPOSITION { get { if (dwMaster == null) return ""; return dwMaster["COMPOSITION"].ToString(); } set { if (dwMaster == null) return; dwMaster["COMPOSITION"] = value; OnPropertyChanged("COMPOSITION", value); } } //lENGth 200
                 public string ORDTYPE { get { if (dwMaster == null) return ""; return dwMaster["ORDTYPE"].ToString(); } set { if (dwMaster == null) return; dwMaster["ORDTYPE"] = value; OnPropertyChanged("ORDTYPE", value); } } //lENGth 10
                 public string QUANTITY { get { if (dwMaster == null) return ""; return dwMaster["QUANTITY"].ToString(); } set { if (dwMaster == null) return; dwMaster["QUANTITY"] = value; OnPropertyChanged("QUANTITY", value); } } //lENGth 10
                 public string CUSTOMER { get { if (dwMaster == null) return ""; return dwMaster["CUSTOMER"].ToString(); } set { if (dwMaster == null) return; dwMaster["CUSTOMER"] = value; OnPropertyChanged("CUSTOMER", value); } } //lENGth 8
                 public string VKPNEUDAT { get { if (dwMaster == null) return ""; return dwMaster["VKPNEUDAT"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPNEUDAT"] = value; OnPropertyChanged("VKPNEUDAT", value); } } //lENGth 8
                 public string VKPNEUTIME { get { if (dwMaster == null) return ""; return dwMaster["VKPNEUTIME"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPNEUTIME"] = value; OnPropertyChanged("VKPNEUTIME", value); } } //lENGth 20
                 public string VKPNUEBEN { get { if (dwMaster == null) return ""; return dwMaster["VKPNUEBEN"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKPNUEBEN"] = value; OnPropertyChanged("VKPNUEBEN", value); } } //lENGth 8
                 public string REMARK { get { if (dwMaster == null) return ""; return dwMaster["REMARK"].ToString(); } set { if (dwMaster == null) return; dwMaster["REMARK"] = value; OnPropertyChanged("REMARK", value); } } //lENGth 80
                 public string NUMBER1 { get { if (dwMaster == null) return ""; return dwMaster["NUMBER1"].ToString(); } set { if (dwMaster == null) return; dwMaster["NUMBER1"] = value; OnPropertyChanged("NUMBER1", value); } } //lENGth 10
                 public string NUMBER2 { get { if (dwMaster == null) return ""; return dwMaster["NUMBER2"].ToString(); } set { if (dwMaster == null) return; dwMaster["NUMBER2"] = value; OnPropertyChanged("NUMBER2", value); } } //lENGth 10
                 public string NUMBER3 { get { if (dwMaster == null) return ""; return dwMaster["NUMBER3"].ToString(); } set { if (dwMaster == null) return; dwMaster["NUMBER3"] = value; OnPropertyChanged("NUMBER3", value); } } //lENGth 10
                 public string NUMBER4 { get { if (dwMaster == null) return ""; return dwMaster["NUMBER4"].ToString(); } set { if (dwMaster == null) return; dwMaster["NUMBER4"] = value; OnPropertyChanged("NUMBER4", value); } } //lENGth 10
                 public string NUMBER5 { get { if (dwMaster == null) return ""; return dwMaster["NUMBER5"].ToString(); } set { if (dwMaster == null) return; dwMaster["NUMBER5"] = value; OnPropertyChanged("NUMBER5", value); } } //lENGth 10
                 public string CHAR1 { get { if (dwMaster == null) return ""; return dwMaster["CHAR1"].ToString(); } set { if (dwMaster == null) return; dwMaster["CHAR1"] = value; OnPropertyChanged("CHAR1", value); } } //lENGth 20
                 public string CHAR2 { get { if (dwMaster == null) return ""; return dwMaster["CHAR2"].ToString(); } set { if (dwMaster == null) return; dwMaster["CHAR2"] = value; OnPropertyChanged("CHAR2", value); } } //lENGth 20
                 public string CHAR3 { get { if (dwMaster == null) return ""; return dwMaster["CHAR3"].ToString(); } set { if (dwMaster == null) return; dwMaster["CHAR3"] = value; OnPropertyChanged("CHAR3", value); } } //lENGth 20
                 public string CHAR4 { get { if (dwMaster == null) return ""; return dwMaster["CHAR4"].ToString(); } set { if (dwMaster == null) return; dwMaster["CHAR4"] = value; OnPropertyChanged("CHAR4", value); } } //lENGth 20
                 public string CHAR5 { get { if (dwMaster == null) return ""; return dwMaster["CHAR5"].ToString(); } set { if (dwMaster == null) return; dwMaster["CHAR5"] = value; OnPropertyChanged("CHAR5", value); } } //lENGth 20
        */
        #endregion
    }
    public partial class UIICC_EXORD
    {

        #region======ColumnSchema==========
        /*
        #region ==ROWNID===========
         public static readonly DependencyProperty ROWNIDProperty = DependencyProperty.Register("ROWNID",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnROWNIDChanged));
         public string ROWNID
         {
             get
             {
                 return (string)GetValue(ROWNIDProperty);
             }
             set
             {
                 SetValue(ROWNIDProperty, value);
                 OnROWNIDChg();
             }
         }
         private static void OnROWNIDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.ROWNID = (string)e.NewValue;
             }
         }
         public virtual void OnROWNIDChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.ROWNID=ROWNID;
         }
          #endregion
        #region ==VKPAUFKRS===========
         public static readonly DependencyProperty VKPAUFKRSProperty = DependencyProperty.Register("VKPAUFKRS",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPAUFKRSChanged));
         public string VKPAUFKRS
         {
             get
             {
                 return (string)GetValue(VKPAUFKRSProperty);
             }
             set
             {
                 SetValue(VKPAUFKRSProperty, value);
                 OnVKPAUFKRSChg();
             }
         }
         private static void OnVKPAUFKRSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPAUFKRS = (string)e.NewValue;
             }
         }
         public virtual void OnVKPAUFKRSChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPAUFKRS=VKPAUFKRS;
         }
          #endregion
        #region ==VKPAUFLFD===========
         public static readonly DependencyProperty VKPAUFLFDProperty = DependencyProperty.Register("VKPAUFLFD",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPAUFLFDChanged));
         public string VKPAUFLFD
         {
             get
             {
                 return (string)GetValue(VKPAUFLFDProperty);
             }
             set
             {
                 SetValue(VKPAUFLFDProperty, value);
                 OnVKPAUFLFDChg();
             }
         }
         private static void OnVKPAUFLFDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPAUFLFD = (string)e.NewValue;
             }
         }
         public virtual void OnVKPAUFLFDChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPAUFLFD=VKPAUFLFD;
         }
          #endregion
        #region ==VKPAUFPOS===========
         public static readonly DependencyProperty VKPAUFPOSProperty = DependencyProperty.Register("VKPAUFPOS",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPAUFPOSChanged));
         public string VKPAUFPOS
         {
             get
             {
                 return (string)GetValue(VKPAUFPOSProperty);
             }
             set
             {
                 SetValue(VKPAUFPOSProperty, value);
                 OnVKPAUFPOSChg();
             }
         }
         private static void OnVKPAUFPOSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPAUFPOS = (string)e.NewValue;
             }
         }
         public virtual void OnVKPAUFPOSChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPAUFPOS=VKPAUFPOS;
         }
          #endregion
        #region ==ITEM===========
         public static readonly DependencyProperty ITEMProperty = DependencyProperty.Register("ITEM",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnITEMChanged));
         public string ITEM
         {
             get
             {
                 return (string)GetValue(ITEMProperty);
             }
             set
             {
                 SetValue(ITEMProperty, value);
                 OnITEMChg();
             }
         }
         private static void OnITEMChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.ITEM = (string)e.NewValue;
             }
         }
         public virtual void OnITEMChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.ITEM=ITEM;
         }
          #endregion
        #region ==VKPART===========
         public static readonly DependencyProperty VKPARTProperty = DependencyProperty.Register("VKPART",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPARTChanged));
         public string VKPART
         {
             get
             {
                 return (string)GetValue(VKPARTProperty);
             }
             set
             {
                 SetValue(VKPARTProperty, value);
                 OnVKPARTChg();
             }
         }
         private static void OnVKPARTChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPART = (string)e.NewValue;
             }
         }
         public virtual void OnVKPARTChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPART=VKPART;
         }
          #endregion
        #region ==VKPARTDES===========
         public static readonly DependencyProperty VKPARTDESProperty = DependencyProperty.Register("VKPARTDES",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPARTDESChanged));
         public string VKPARTDES
         {
             get
             {
                 return (string)GetValue(VKPARTDESProperty);
             }
             set
             {
                 SetValue(VKPARTDESProperty, value);
                 OnVKPARTDESChg();
             }
         }
         private static void OnVKPARTDESChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPARTDES = (string)e.NewValue;
             }
         }
         public virtual void OnVKPARTDESChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPARTDES=VKPARTDES;
         }
          #endregion
        #region ==VKPFARBE===========
         public static readonly DependencyProperty VKPFARBEProperty = DependencyProperty.Register("VKPFARBE",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPFARBEChanged));
         public string VKPFARBE
         {
             get
             {
                 return (string)GetValue(VKPFARBEProperty);
             }
             set
             {
                 SetValue(VKPFARBEProperty, value);
                 OnVKPFARBEChg();
             }
         }
         private static void OnVKPFARBEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPFARBE = (string)e.NewValue;
             }
         }
         public virtual void OnVKPFARBEChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPFARBE=VKPFARBE;
         }
          #endregion
        #region ==VKPCDES===========
         public static readonly DependencyProperty VKPCDESProperty = DependencyProperty.Register("VKPCDES",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPCDESChanged));
         public string VKPCDES
         {
             get
             {
                 return (string)GetValue(VKPCDESProperty);
             }
             set
             {
                 SetValue(VKPCDESProperty, value);
                 OnVKPCDESChg();
             }
         }
         private static void OnVKPCDESChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPCDES = (string)e.NewValue;
             }
         }
         public virtual void OnVKPCDESChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPCDES=VKPCDES;
         }
          #endregion
        #region ==TWIDTH===========
         public static readonly DependencyProperty TWIDTHProperty = DependencyProperty.Register("TWIDTH",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnTWIDTHChanged));
         public string TWIDTH
         {
             get
             {
                 return (string)GetValue(TWIDTHProperty);
             }
             set
             {
                 SetValue(TWIDTHProperty, value);
                 OnTWIDTHChg();
             }
         }
         private static void OnTWIDTHChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.TWIDTH = (string)e.NewValue;
             }
         }
         public virtual void OnTWIDTHChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.TWIDTH=TWIDTH;
         }
          #endregion
        #region ==VWIDTH===========
         public static readonly DependencyProperty VWIDTHProperty = DependencyProperty.Register("VWIDTH",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVWIDTHChanged));
         public string VWIDTH
         {
             get
             {
                 return (string)GetValue(VWIDTHProperty);
             }
             set
             {
                 SetValue(VWIDTHProperty, value);
                 OnVWIDTHChg();
             }
         }
         private static void OnVWIDTHChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VWIDTH = (string)e.NewValue;
             }
         }
         public virtual void OnVWIDTHChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VWIDTH=VWIDTH;
         }
          #endregion
        #region ==GSQM===========
         public static readonly DependencyProperty GSQMProperty = DependencyProperty.Register("GSQM",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnGSQMChanged));
         public string GSQM
         {
             get
             {
                 return (string)GetValue(GSQMProperty);
             }
             set
             {
                 SetValue(GSQMProperty, value);
                 OnGSQMChg();
             }
         }
         private static void OnGSQMChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.GSQM = (string)e.NewValue;
             }
         }
         public virtual void OnGSQMChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.GSQM=GSQM;
         }
          #endregion
        #region ==GM===========
         public static readonly DependencyProperty GMProperty = DependencyProperty.Register("GM",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnGMChanged));
         public string GM
         {
             get
             {
                 return (string)GetValue(GMProperty);
             }
             set
             {
                 SetValue(GMProperty, value);
                 OnGMChg();
             }
         }
         private static void OnGMChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.GM = (string)e.NewValue;
             }
         }
         public virtual void OnGMChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.GM=GM;
         }
          #endregion
        #region ==YARN===========
         public static readonly DependencyProperty YARNProperty = DependencyProperty.Register("YARN",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnYARNChanged));
         public string YARN
         {
             get
             {
                 return (string)GetValue(YARNProperty);
             }
             set
             {
                 SetValue(YARNProperty, value);
                 OnYARNChg();
             }
         }
         private static void OnYARNChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.YARN = (string)e.NewValue;
             }
         }
         public virtual void OnYARNChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.YARN=YARN;
         }
          #endregion
        #region ==PRICE===========
         public static readonly DependencyProperty PRICEProperty = DependencyProperty.Register("PRICE",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPRICEChanged));
         public string PRICE
         {
             get
             {
                 return (string)GetValue(PRICEProperty);
             }
             set
             {
                 SetValue(PRICEProperty, value);
                 OnPRICEChg();
             }
         }
         private static void OnPRICEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.PRICE = (string)e.NewValue;
             }
         }
         public virtual void OnPRICEChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.PRICE=PRICE;
         }
          #endregion
        #region ==SPRICE===========
         public static readonly DependencyProperty SPRICEProperty = DependencyProperty.Register("SPRICE",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnSPRICEChanged));
         public string SPRICE
         {
             get
             {
                 return (string)GetValue(SPRICEProperty);
             }
             set
             {
                 SetValue(SPRICEProperty, value);
                 OnSPRICEChg();
             }
         }
         private static void OnSPRICEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.SPRICE = (string)e.NewValue;
             }
         }
         public virtual void OnSPRICEChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.SPRICE=SPRICE;
         }
          #endregion
        #region ==COMPOSITION===========
         public static readonly DependencyProperty COMPOSITIONProperty = DependencyProperty.Register("COMPOSITION",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCOMPOSITIONChanged));
         public string COMPOSITION
         {
             get
             {
                 return (string)GetValue(COMPOSITIONProperty);
             }
             set
             {
                 SetValue(COMPOSITIONProperty, value);
                 OnCOMPOSITIONChg();
             }
         }
         private static void OnCOMPOSITIONChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.COMPOSITION = (string)e.NewValue;
             }
         }
         public virtual void OnCOMPOSITIONChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.COMPOSITION=COMPOSITION;
         }
          #endregion
        #region ==ORDTYPE===========
         public static readonly DependencyProperty ORDTYPEProperty = DependencyProperty.Register("ORDTYPE",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnORDTYPEChanged));
         public string ORDTYPE
         {
             get
             {
                 return (string)GetValue(ORDTYPEProperty);
             }
             set
             {
                 SetValue(ORDTYPEProperty, value);
                 OnORDTYPEChg();
             }
         }
         private static void OnORDTYPEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.ORDTYPE = (string)e.NewValue;
             }
         }
         public virtual void OnORDTYPEChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.ORDTYPE=ORDTYPE;
         }
          #endregion
        #region ==QUANTITY===========
         public static readonly DependencyProperty QUANTITYProperty = DependencyProperty.Register("QUANTITY",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnQUANTITYChanged));
         public string QUANTITY
         {
             get
             {
                 return (string)GetValue(QUANTITYProperty);
             }
             set
             {
                 SetValue(QUANTITYProperty, value);
                 OnQUANTITYChg();
             }
         }
         private static void OnQUANTITYChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.QUANTITY = (string)e.NewValue;
             }
         }
         public virtual void OnQUANTITYChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.QUANTITY=QUANTITY;
         }
          #endregion
        #region ==CUSTOMER===========
         public static readonly DependencyProperty CUSTOMERProperty = DependencyProperty.Register("CUSTOMER",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCUSTOMERChanged));
         public string CUSTOMER
         {
             get
             {
                 return (string)GetValue(CUSTOMERProperty);
             }
             set
             {
                 SetValue(CUSTOMERProperty, value);
                 OnCUSTOMERChg();
             }
         }
         private static void OnCUSTOMERChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.CUSTOMER = (string)e.NewValue;
             }
         }
         public virtual void OnCUSTOMERChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.CUSTOMER=CUSTOMER;
         }
          #endregion
        #region ==VKPNEUDAT===========
         public static readonly DependencyProperty VKPNEUDATProperty = DependencyProperty.Register("VKPNEUDAT",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPNEUDATChanged));
         public string VKPNEUDAT
         {
             get
             {
                 return (string)GetValue(VKPNEUDATProperty);
             }
             set
             {
                 SetValue(VKPNEUDATProperty, value);
                 OnVKPNEUDATChg();
             }
         }
         private static void OnVKPNEUDATChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPNEUDAT = (string)e.NewValue;
             }
         }
         public virtual void OnVKPNEUDATChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPNEUDAT=VKPNEUDAT;
         }
          #endregion
        #region ==VKPNEUTIME===========
         public static readonly DependencyProperty VKPNEUTIMEProperty = DependencyProperty.Register("VKPNEUTIME",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPNEUTIMEChanged));
         public string VKPNEUTIME
         {
             get
             {
                 return (string)GetValue(VKPNEUTIMEProperty);
             }
             set
             {
                 SetValue(VKPNEUTIMEProperty, value);
                 OnVKPNEUTIMEChg();
             }
         }
         private static void OnVKPNEUTIMEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPNEUTIME = (string)e.NewValue;
             }
         }
         public virtual void OnVKPNEUTIMEChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPNEUTIME=VKPNEUTIME;
         }
          #endregion
        #region ==VKPNUEBEN===========
         public static readonly DependencyProperty VKPNUEBENProperty = DependencyProperty.Register("VKPNUEBEN",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnVKPNUEBENChanged));
         public string VKPNUEBEN
         {
             get
             {
                 return (string)GetValue(VKPNUEBENProperty);
             }
             set
             {
                 SetValue(VKPNUEBENProperty, value);
                 OnVKPNUEBENChg();
             }
         }
         private static void OnVKPNUEBENChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.VKPNUEBEN = (string)e.NewValue;
             }
         }
         public virtual void OnVKPNUEBENChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.VKPNUEBEN=VKPNUEBEN;
         }
          #endregion
        #region ==REMARK===========
         public static readonly DependencyProperty REMARKProperty = DependencyProperty.Register("REMARK",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnREMARKChanged));
         public string REMARK
         {
             get
             {
                 return (string)GetValue(REMARKProperty);
             }
             set
             {
                 SetValue(REMARKProperty, value);
                 OnREMARKChg();
             }
         }
         private static void OnREMARKChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.REMARK = (string)e.NewValue;
             }
         }
         public virtual void OnREMARKChg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.REMARK=REMARK;
         }
          #endregion
        #region ==NUMBER1===========
         public static readonly DependencyProperty NUMBER1Property = DependencyProperty.Register("NUMBER1",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNUMBER1Changed));
         public string NUMBER1
         {
             get
             {
                 return (string)GetValue(NUMBER1Property);
             }
             set
             {
                 SetValue(NUMBER1Property, value);
                 OnNUMBER1Chg();
             }
         }
         private static void OnNUMBER1Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.NUMBER1 = (string)e.NewValue;
             }
         }
         public virtual void OnNUMBER1Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.NUMBER1=NUMBER1;
         }
          #endregion
        #region ==NUMBER2===========
         public static readonly DependencyProperty NUMBER2Property = DependencyProperty.Register("NUMBER2",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNUMBER2Changed));
         public string NUMBER2
         {
             get
             {
                 return (string)GetValue(NUMBER2Property);
             }
             set
             {
                 SetValue(NUMBER2Property, value);
                 OnNUMBER2Chg();
             }
         }
         private static void OnNUMBER2Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.NUMBER2 = (string)e.NewValue;
             }
         }
         public virtual void OnNUMBER2Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.NUMBER2=NUMBER2;
         }
          #endregion
        #region ==NUMBER3===========
         public static readonly DependencyProperty NUMBER3Property = DependencyProperty.Register("NUMBER3",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNUMBER3Changed));
         public string NUMBER3
         {
             get
             {
                 return (string)GetValue(NUMBER3Property);
             }
             set
             {
                 SetValue(NUMBER3Property, value);
                 OnNUMBER3Chg();
             }
         }
         private static void OnNUMBER3Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.NUMBER3 = (string)e.NewValue;
             }
         }
         public virtual void OnNUMBER3Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.NUMBER3=NUMBER3;
         }
          #endregion
        #region ==NUMBER4===========
         public static readonly DependencyProperty NUMBER4Property = DependencyProperty.Register("NUMBER4",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNUMBER4Changed));
         public string NUMBER4
         {
             get
             {
                 return (string)GetValue(NUMBER4Property);
             }
             set
             {
                 SetValue(NUMBER4Property, value);
                 OnNUMBER4Chg();
             }
         }
         private static void OnNUMBER4Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.NUMBER4 = (string)e.NewValue;
             }
         }
         public virtual void OnNUMBER4Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.NUMBER4=NUMBER4;
         }
          #endregion
        #region ==NUMBER5===========
         public static readonly DependencyProperty NUMBER5Property = DependencyProperty.Register("NUMBER5",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNUMBER5Changed));
         public string NUMBER5
         {
             get
             {
                 return (string)GetValue(NUMBER5Property);
             }
             set
             {
                 SetValue(NUMBER5Property, value);
                 OnNUMBER5Chg();
             }
         }
         private static void OnNUMBER5Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.NUMBER5 = (string)e.NewValue;
             }
         }
         public virtual void OnNUMBER5Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.NUMBER5=NUMBER5;
         }
          #endregion
        #region ==CHAR1===========
         public static readonly DependencyProperty CHAR1Property = DependencyProperty.Register("CHAR1",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCHAR1Changed));
         public string CHAR1
         {
             get
             {
                 return (string)GetValue(CHAR1Property);
             }
             set
             {
                 SetValue(CHAR1Property, value);
                 OnCHAR1Chg();
             }
         }
         private static void OnCHAR1Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.CHAR1 = (string)e.NewValue;
             }
         }
         public virtual void OnCHAR1Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.CHAR1=CHAR1;
         }
          #endregion
        #region ==CHAR2===========
         public static readonly DependencyProperty CHAR2Property = DependencyProperty.Register("CHAR2",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCHAR2Changed));
         public string CHAR2
         {
             get
             {
                 return (string)GetValue(CHAR2Property);
             }
             set
             {
                 SetValue(CHAR2Property, value);
                 OnCHAR2Chg();
             }
         }
         private static void OnCHAR2Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.CHAR2 = (string)e.NewValue;
             }
         }
         public virtual void OnCHAR2Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.CHAR2=CHAR2;
         }
          #endregion
        #region ==CHAR3===========
         public static readonly DependencyProperty CHAR3Property = DependencyProperty.Register("CHAR3",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCHAR3Changed));
         public string CHAR3
         {
             get
             {
                 return (string)GetValue(CHAR3Property);
             }
             set
             {
                 SetValue(CHAR3Property, value);
                 OnCHAR3Chg();
             }
         }
         private static void OnCHAR3Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.CHAR3 = (string)e.NewValue;
             }
         }
         public virtual void OnCHAR3Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.CHAR3=CHAR3;
         }
          #endregion
        #region ==CHAR4===========
         public static readonly DependencyProperty CHAR4Property = DependencyProperty.Register("CHAR4",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCHAR4Changed));
         public string CHAR4
         {
             get
             {
                 return (string)GetValue(CHAR4Property);
             }
             set
             {
                 SetValue(CHAR4Property, value);
                 OnCHAR4Chg();
             }
         }
         private static void OnCHAR4Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.CHAR4 = (string)e.NewValue;
             }
         }
         public virtual void OnCHAR4Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.CHAR4=CHAR4;
         }
          #endregion
        #region ==CHAR5===========
         public static readonly DependencyProperty CHAR5Property = DependencyProperty.Register("CHAR5",
             typeof(string), typeof(UIICC_EXORD),
             new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCHAR5Changed));
         public string CHAR5
         {
             get
             {
                 return (string)GetValue(CHAR5Property);
             }
             set
             {
                 SetValue(CHAR5Property, value);
                 OnCHAR5Chg();
             }
         }
         private static void OnCHAR5Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
         {
             var src = sender as UIICC_EXORD;
             if (src != null)
             {
                 src.CHAR5 = (string)e.NewValue;
             }
         }
         public virtual void OnCHAR5Chg()
         { 
         if(!IsEdit)
         return;
         if(dwMaster==null)
         return;
         TMV.CHAR5=CHAR5;
         }
          #endregion
        */

        #endregion
    }
}
